package com.neuedu.ChinaCityDataApi.controller;

import com.neuedu.ChinaCityDataApi.pojo.Year_Value_Ral;
import com.neuedu.ChinaCityDataApi.service.Year_Value_ralService;
import com.neuedu.ChinaCityDataApi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Year_Value_ralController {
    @Autowired
    private Year_Value_ralService year_value_ralService;
    @GetMapping("/queryAllyear_Value_ral")
    public ResponseResult<List<Year_Value_Ral>> queryAllyear_Value_ral(){
        List<Year_Value_Ral> year_value_rals = year_value_ralService.queryAllyear_Value_ral();
        return new ResponseResult<>("200","查询成功",year_value_rals);
    }
}
